#ifndef WIND_SPEED_H
#define WIND_SPEED_H

#include "iot_uart.h"
#include "los_task.h"
#include "ohos_init.h"
#include "iot_errno.h"

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>

// 风速相关串口及任务配置
#define WIND_SPEED_UART_ID EUART0_M0
#define WIND_SPEED_UART_BAUDRATE 4800
#define WIND_SPEED_TASK_STACK 2048
#define WIND_SPEED_TASK_PRIO 25

// Modbus 相关配置
#define MODBUS_ADDR 0x01
#define MODBUS_FUNC_READ 0x03
#define WIND_SPEED_REG_ADDR 0x0000
#define WIND_SPEED_REG_COUNT 0x0002

// 函数声明
void wind_speed_init(void);

#endif